package previous.Test_0304;

import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 */
public class Bule_bridge {
    //成绩分析
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int n=scan.nextInt();
        int[] a=new int[n];
        float avg=0;
        for (int i = 0; i < n; i++) {
             int m=scan.nextInt();
             avg+=m;
             a[i]=m;
        }
        Arrays.sort(a);
        //最高分
        System.out.println(a[n-1]);
        //最低分
        System.out.println(a[0]);
        System.out.printf("%.2f",avg/n);
        scan.close();
    }
}
